package com.pdemo.core.genericdao;

import java.io.Serializable;


/**
 * @author kcheng
 *
 * @param <T>
 * @param <I>
 */
public interface IDao<T extends IEntity<I>, I extends Serializable> {

	
    T load(I id);
    T get(I id);
    void save(T object);
    void delete(I id) throws UnsupportedOperationException;
    void delete(final T object) throws UnsupportedOperationException;
    void flush();

    

    
    

}
